测试代码Github地址:https://github.com/zhouyanger/java_demo/tree/master/netty 四.Netty 4.1 概述 Netty 是由 JBOSS 提供的一个 Java 开源框架。Netty 提供异步的、基于事件驱动的网络 应用程序框架,用以快速 ...
分类:
Web程序 时间:
2020-07-28 13:59:55
阅读次数:
72
Redis字符串的实现 Redis虽然是用C语言写的,但却没有直接用C语言的字符串,而是自己实现了一套字符串。目的就是为了提升速度,提升性能,可以看出Redis为了高性能也是煞费苦心。 Redis构建了一个叫做简单动态字符串(Simple Dynamic String),简称SDS 1.SDS 代码 ...
分类:
其他好文 时间:
2020-07-27 13:49:13
阅读次数:
72
Given a set of sticks of various lengths, is it possible to join them end-to-end to form a square? InputThe first line of input contains N, the number ...
分类:
其他好文 时间:
2020-07-27 09:42:59
阅读次数:
80
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2544 题意 给出一个 $n$ 点 $m$ 边的带权无向图,找出结点 $1$ 到结点 $n$ 的路径最小权。($n \le 100, m \le 10000$) 题解 $n$ 的范围较小,可以用 $O_{ ...
分类:
其他好文 时间:
2020-07-27 09:38:16
阅读次数:
51
安装wxpython 及其他依赖 #1 安装wxFormBuolder https://sourceforge.net/projects/wxformbuilder/ #2 安装wxpython pip install wxPython -i https://pypi.douban.com/simp ...
分类:
编程语言 时间:
2020-07-27 09:35:55
阅读次数:
69
When you go shopping, you can search in repository for avalible merchandises by the computers and internet. First you give the search system a name ab ...
分类:
其他好文 时间:
2020-07-27 09:29:30
阅读次数:
82
//判断输入的数字是否可以构成一棵树 //前一个数是后一个的父亲节点,树的定义:有且仅有一个总根节点,根节点到其他任意节点路径唯一,每个节点只能被其根指向,入度只能为1 #include <stdio.h> #include <string.h> #define maxn 10002 int in[ ...
分类:
其他好文 时间:
2020-07-27 09:18:05
阅读次数:
68
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=6756 CSDN食用链接:https://blog.csdn.net/qq_43906000/article/details/107590312 Problem Description Given an ...
分类:
其他好文 时间:
2020-07-26 15:58:23
阅读次数:
139
安装模块: pip install 模块名 利用豆瓣源指定路径安装: pip install -i http://pypi.douban.com/simple/ paramiko --trusted-host pypi.douban.com --target=E:\pythondir\venv\Li ...
分类:
编程语言 时间:
2020-07-26 15:37:42
阅读次数:
80
题目描述 The task is really simple: given N exits on a highway which forms a simple cycle, you are supposed to tell the shortest distance between any pair ...
分类:
其他好文 时间:
2020-07-26 15:22:02
阅读次数:
59